<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>HTML网页 基础布局</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="../../../libs/normalize.css/7.0.0/normalize.css" rel="stylesheet">
</head>
<style>
    /*主面板样式*/

    #container {
        width: 980px;
        margin: 0px auto;
        /*主面板DIV居中*/
    }

    /*顶部面板样式*/

    #header {
        width: 100%;
        height: 150px;
        border: 1px #F00 solid;
    }

    /*中间部分面板样式*/

    #main {
        width: 100%;
        height: 400px;
        border: 1px #F00 solid;
    }

    /*底部面板样式*/

    #footer {
        width: 100%;
        height: 100px;
        border: 1px #F00 solid;
    }
</style>


<body>
    <div id="container">
        <div id="header">顶部（header）</div>
        <div id="main">主体部分（main）</div>
        <div id="footer">底部（footer）</div>
    </div>
</body>

</html>